package com.array;

public class array05 {
    public static void main(String[] args) {
        //[4][2]  四行两列
        /**
         * 1,2  array[0]
         * 3,4  array[1]
         * 5,6  array[2]
         * 7,8  array[3]
         */
        int[][] array = {{1,2},{3,4},{5,6},{7,8}};
        for (int i = 0; i < array.length; i++) {
            for (int j = 0; j < array[i].length; j++) {
                System.out.println(array[i][j]);

            }

        }
    }
    public static void printArray(int[] arrays){
        for (int i = 0; i < arrays.length; i++) {
            System.out.println(arrays[i]+" ");

        }
    }
}
